package com.nut.service;

import com.nut.entity.User;

import java.util.List;

/**
 * @ author : HyoJoo-W
 * @ createDate : 2021-04-20 20:09
 * @ Description : User service层接口
 */
public interface UserService
{
    //查询所有User
    List<User> findAllUsers();

    //添加User
    void saveUser(User user);

    //根据id删除User
    void deleteUserById(int id);

    //修改User
    void updateUser(User user);

    //分页查询
    List<User> findByPage(Integer pageNow,Integer rows);

    //查询总条数
    Long findTotals();

    //根据id查询User
    User findUserById(int id);
}
